package com.leaves.exception;

/**
 * @Author: LEAVES
 * @Version 1.0
 * @Date: 2022年08月01日  10时56分21秒
 * @Description: 异常类
 */
public class MessageCenterException extends RuntimeException {

    private String msg;

    private Exception exception;

    public MessageCenterException(String msg, Exception exception) {
        super(exception);
        this.msg = msg;
        this.exception = exception;
    }

    public MessageCenterException(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Exception getException() {
        return exception;
    }

    public void setException(Exception exception) {
        this.exception = exception;
    }
}
